<template>
    <div>
        <router-link to="/app/login" v-show="!this.$store.state.user.isLogin">登录</router-link>
        <div v-show="this.$store.state.user.isLogin">
            <div v-show="this.$store.state.user.roleName == 'user'">
                <router-link to="/app/healthDay">健康日报</router-link>
            </div>
            <div v-show="this.$store.state.user.roleName == 'admin'">
                <router-link to="/app/allUser">所有用户</router-link>
                <br>
                <router-link to="/app/findHealthDay">查询健康日报</router-link>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "My"
    }
</script>

<style scoped>

</style>